package cn.jia.hrm.client;

import cn.jia.hrm.AjaxResult;
import cn.jia.hrm.domain.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/loginUser")
@FeignClient(value = "AUTH-SERVICE",fallbackFactory = LoginUserfallbackFactoryFeignClient.class) // 去找AUTH-SERVICE服务器  ，并可以 注入
public interface LoginUserClient {
    @PutMapping
    AjaxResult addOrUpdate(@RequestBody LoginUser loginUser);

}